﻿@using SyntacticSugar
@using Best.WidgetFactory.Cache;
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
     var cacheKey = CacheKeys.SystemLanguage;
     var cf = CacheFactory<string>.GetInstance();
     if (cf.ContainsKey(cacheKey))
     {
       var cacheVal = cf[cacheKey];
       if (cacheVal.IsValuable() && cacheVal != "cn")
       {
          Layout = "~/Views/Shared/_Layout_" + cf[cacheKey] + ".cshtml";
       }
     }
}
<link href="@Url.Content("~/Areas/HolidaySettingsRules/Views/_css/holidayrulesdetail-index.css")" rel="stylesheet" />

@{ Html.RenderAction("_NavPage", "Shared", new { @addressId = 641,area="" }); }

<p></p>
<form id="Form" class="windowbox showClass">
    <div class="formButton">
        <!------------------btn_Save BEGIN------------------>
        <button type="button" id="btn_Save" name="btn_Save" style="cursor:pointer" class="btn btn-default btn-size0  ">Save</button>
        <!------------------btn_Save END------------------>
    </div><!------------------AttendanceOrganizeLayout BEGIN------------------>
    <div id="AttendanceOrganizeLayout1" class="layout_area windowbox">
        <div id="div_title" class="layout_area_title">Basic</div>
        <div id="div_body" class="layout_area_body">
                <table data-sort="sortDisabled">
                    <tbody>
                        <tr class="firstRow">
                            <td width="180" valign="middle" align="right" style="word-break: break-all;" height="60">规则名称</td>
                            <td valign="middle" align="center" style="word-break: break-all;" rowspan="1" colspan="3">
                                <!------------------Code BEGIN------------------>
                                <input id="hidEditOverTimeBill" name="hidEditOverTimeBill" type="hidden" value=''>
                                <input id="CompanyID" name="CompanyID" type="hidden" value='@Request["CompanyID"]'>
                                <input id="VGUID" name="VGUID" type="hidden" value='@Request["VGUID"]'>
                                <input id="RuleName" name="RuleName" type="text" value="" style="width:200px;height:24px; " class="" >
                                <script>
   $(function () {

       $("#RuleName").on("click", function () {


                });
       $("#RuleName").on("change", function () {


                });
       $("#RuleName").on("blur", function () {


                });
       $("#RuleName").on("dbclick", function () {


                });

       var form = $("#RuleName").closest("form");
var formData=[];
var thisRule1 = { input: '#RuleName', message: 'Must be filled.', action: 'keyup, blur', rule: 'required' };
    if (form.data("validateKey") != null) {
       formData = form.data("validateKey");
    }
 formData.push(thisRule1);
 formData = form.data("validateKey", formData);
   })

   function setValue_RuleName(val) { if (/\/Date\(\d+\)\//.test(val)) { return $("#RuleName").val($.convert.jsonReductionDate(val, "yyyy-MM-dd hh:mm:ss")); } else { return $("#RuleName").val(val); } };
   function getValue_RuleName() { return $("#RuleName").val(); };

                                </script>
                                <!------------------Code END------------------>
                            </td>
                            <td width="180" valign="middle" align="right" style="word-break: break-all;" height="60">折算方法</td>
                            <td valign="middle" align="center" style="word-break: break-all;" rowspan="1" colspan="3">
                                <!------------------Code BEGIN------------------>
                                @*<input id="ConversionType" name="ConversionType" type="text" value="" style="width:200px;height:24px; " class="" >*@
                                <select data-status="loading" id="ConversionType" name="ConversionType" style="">
                                </select>

                                <script>
    $(function () {

        $("#ConversionType").on("click", function () {


                                        });
        $("#ConversionType").on("change", function () {


                                        });
        $("#ConversionType").on("blur", function () {


                                        });
        $("#ConversionType").on("dbclick", function () {


                                        });





    })
    function setValue_ConversionType(val) { if (/\/Date\(\d+\)\//.test(val)) { return $("#ConversionType").val($.convert.jsonReductionDate(val, "yyyy-MM-dd hh:mm:ss")); } else { return $("#ConversionType").val(val); } };
    function getValue_ConversionType() { return $("#ConversionType").val(); };


    function loadSelectConversionType() {
         $.ajax({
             url: "/HolidaySettingsRules/HolidayRulesDetail/GetConversionTypeStatus",
                              success: function (msg)
                                              {
                                  uiEngineHelper.bindSelect("#ConversionType", msg.responseInfo, "ListKey", "Description");
                                  $("#ConversionType").removeAttr("data-status");
                                          },
                                  error:jqxError,
                                  data:{},
                                  dataType:"json"
                            })
    }
    loadSelectConversionType();
                                </script>
                                <!------------------Code END------------------>
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" align="right" colspan="1" rowspan="2" style="word-break: break-all;" height="60">规则描述</td>
                            <td valign="middle" align="center" colspan="3" rowspan="2" style="word-break: break-all;" height="60">
                                <!------------------Name BEGIN------------------>
                                <textarea id="Description" name="Description" style="width:270px !important;height:72px;"></textarea>
                                <!------------------Name END------------------>
                            </td>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60">保留小数位</td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;" height="60">
                                <!------------------Name BEGIN------------------>
                                <input id="DecimalPlaces" name="DecimalPlaces" type="text" value="" style="width:200px;height:24px; " class="">
                                <script>
   $(function () {

       $("#DecimalPlaces").on("click", function () {


                });
       $("#DecimalPlaces").on("change", function () {


                });
       $("#DecimalPlaces").on("blur", function () {


                });
       $("#DecimalPlaces").on("dbclick", function () {


                });

       var form = $("#DecimalPlaces").closest("form");
var formData=[];
var thisRule1 = { input: '#DecimalPlaces', message: 'Please input digit number.', action: 'keyup, blur', rule: 'number' };
    if (form.data("validateKey") != null) {
       formData = form.data("validateKey");
    }
 formData.push(thisRule1);
 formData = form.data("validateKey", formData);
   })

   function setValue_DecimalPlaces(val) { if (/\/Date\(\d+\)\//.test(val)) { return $("#DecimalPlaces").val($.convert.jsonReductionDate(val, "yyyy-MM-dd hh:mm:ss")); } else { return $("#DecimalPlaces").val(val); } };
   function getValue_DecimalPlaces() { return $("#DecimalPlaces").val(); };

                                </script>
                                <!------------------Name END------------------>
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60">取值方式</td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;">
                                <!------------------NameEng BEGIN------------------>
                                @*<input id="RoundingMethod" name="RoundingMethod" type="text" value="" style="width:200px;height:24px; " class="">*@
                                <select data-status="loading" id="RoundingMethod" name="RoundingMethod" style="">
                                </select>

                                <script>
    $(function () {

        $("#RoundingMethod").on("click", function () {


                                        });
        $("#RoundingMethod").on("change", function () {


                                        });
        $("#RoundingMethod").on("blur", function () {


                                        });
        $("#RoundingMethod").on("dbclick", function () {


                                        });





    })
    function setValue_RoundingMethod(val) { if (/\/Date\(\d+\)\//.test(val)) { return $("#RoundingMethod").val($.convert.jsonReductionDate(val, "yyyy-MM-dd hh:mm:ss")); } else { return $("#RoundingMethod").val(val); } };
    function getValue_RoundingMethod() { return $("#RoundingMethod").val(); };


    function loadSelectRoundingMethod() {
         $.ajax({
             url: "/HolidaySettingsRules/HolidayRulesDetail/GetRoundingMethodStatus",
                              success: function (msg)
                                              {
                                  uiEngineHelper.bindSelect("#RoundingMethod", msg.responseInfo, "ListKey", "Description");
                                  $("#RoundingMethod").removeAttr("data-status");
                                          },
                                  error:jqxError,
                                  data:{},
                                  dataType:"json"
                            })
    }
    loadSelectRoundingMethod();
                                </script>
                                <!------------------NameEng END------------------>
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60">计算标准</td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;" height="60">
                                <!------------------Name BEGIN------------------>
                                @*<input id="CalculationStandard" name="CalculationStandard" type="text" value="" style="width:200px;height:24px; " class="">*@
                                <select data-status="loading" id="CalculationStandard" name="CalculationStandard" style="">
                                </select>

                                <script>
    $(function () {

        $("#CalculationStandard").on("click", function () {


                                        });
        $("#CalculationStandard").on("change", function () {


                                        });
        $("#CalculationStandard").on("blur", function () {


                                        });
        $("#CalculationStandard").on("dbclick", function () {


                                        });





    })
    function setValue_CalculationStandard(val) { if (/\/Date\(\d+\)\//.test(val)) { return $("#CalculationStandard").val($.convert.jsonReductionDate(val, "yyyy-MM-dd hh:mm:ss")); } else { return $("#CalculationStandard").val(val); } };
    function getValue_CalculationStandard() { return $("#CalculationStandard").val(); };


         function loadSelectCalculationStandard() {
         $.ajax({
             url: "/HolidaySettingsRules/HolidayRulesDetail/GetCalculationStandardStatus",
                              success: function (msg)
                                              {
                                  uiEngineHelper.bindSelect("#CalculationStandard", msg.responseInfo, "ListKey", "Description");
                                  $("#CalculationStandard").removeAttr("data-status");
                                          },
                                  error:jqxError,
                                  data:{},
                                  dataType:"json"
                            })
    }
    loadSelectCalculationStandard();
                                </script>
                                <!------------------Name END------------------>
                            </td>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60">延长时间</td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;" height="60">
                                <!------------------Name BEGIN------------------>
                                <input id="ExtendTime" name="ExtendTime" type="text" value="" style="width:200px;height:24px; " class="">
                                <script>
   $(function () {
       var form = $("#ExtendTime").closest("form");
var formData=[];
var thisRule1 = { input: '#ExtendTime', message: 'Please input digit number.', action: 'keyup, blur', rule: 'number' };
    if (form.data("validateKey") != null) {
       formData = form.data("validateKey");
    }
 formData.push(thisRule1);
 formData = form.data("validateKey", formData);
   })

   function setValue_ExtendTime(val) { if (/\/Date\(\d+\)\//.test(val)) { return $("#ExtendTime").val($.convert.jsonReductionDate(val, "yyyy-MM-dd hh:mm:ss")); } else { return $("#ExtendTime").val(val); } };
   function getValue_ExtendTime() { return $("#ExtendTime").val(); };

                                </script>
                                <!------------------Name END------------------>
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60">值类型</td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;" height="60">
                                <!------------------Name BEGIN------------------>
                                @*<input id="Type" name="Type" type="text" value="" style="width:200px;height:24px; " class="">*@
                                <select data-status="loading" id="Type" name="Type" style="">
                                </select>

                                <script>
    $(function () {

        $("#Type").on("click", function () {


                                        });
        $("#Type").on("change", function () {


                                        });
        $("#Type").on("blur", function () {


                                        });
        $("#Type").on("dbclick", function () {


                                        });





    })
    function setValue_Type(val) { if (/\/Date\(\d+\)\//.test(val)) { return $("#Type").val($.convert.jsonReductionDate(val, "yyyy-MM-dd hh:mm:ss")); } else { return $("#Type").val(val); } };
    function getValue_Type() { return $("#Type").val(); };


    function loadSelectType() {
         $.ajax({
             url: "/HolidaySettingsRules/HolidayRulesDetail/GetTypeStatus",
                              success: function (msg)
                                              {
                                  uiEngineHelper.bindSelect("#Type", msg.responseInfo, "ListKey", "Description");
                                  $("#Type").removeAttr("data-status");
                                          },
                                  error:jqxError,
                                  data:{},
                                  dataType:"json"
                            })
    }
    loadSelectType();
                                </script>
                                <!------------------Name END------------------>
                            </td>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60">延长单位</td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;" height="60">
                                <!------------------Name BEGIN------------------>
                                @*<input id="ExtendTimeUnit" name="ExtendTimeUnit" type="text" value="" style="width:200px;height:24px; " class="">*@
                                <select data-status="loading" id="ExtendTimeUnit" name="ExtendTimeUnit" style="">
                                </select>

                                <script>
    $(function () {

        $("#ExtendTimeUnit").on("click", function () {


                                        });
        $("#ExtendTimeUnit").on("change", function () {


                                        });
        $("#ExtendTimeUnit").on("blur", function () {


                                        });
        $("#ExtendTimeUnit").on("dbclick", function () {


                                        });





    })
    function setValue_ExtendTimeUnit(val) { if (/\/Date\(\d+\)\//.test(val)) { return $("#ExtendTimeUnit").val($.convert.jsonReductionDate(val, "yyyy-MM-dd hh:mm:ss")); } else { return $("#ExtendTimeUnit").val(val); } };
    function getValue_ExtendTimeUnit() { return $("#ExtendTimeUnit").val(); };


    function loadSelectExtendTimeUnit() {
         $.ajax({
             url: "/HolidaySettingsRules/HolidayRulesDetail/GetExtendTimeUnitStatus",
                              success: function (msg)
                                              {
                                  uiEngineHelper.bindSelect("#ExtendTimeUnit", msg.responseInfo, "ListKey", "Description");
                                  $("#ExtendTimeUnit").removeAttr("data-status");
                                          },
                                  error:jqxError,
                                  data:{},
                                  dataType:"json"
                            })
    }
    loadSelectExtendTimeUnit();
                                </script>
                                <!------------------Name END------------------>
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60">计算周期</td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;" height="60">
                                <!------------------Name BEGIN------------------>
                                @*<input id="CalculationCycle" name="CalculationCycle" type="text" value="" style="width:200px;height:24px; " class="">*@
                                <select data-status="loading" id="CalculationCycle" name="CalculationCycle" style="">
                                </select>

                                <script>
    $(function () {

        $("#CalculationCycle").on("click", function () {


                                        });
        $("#CalculationCycle").on("change", function () {


                                        });
        $("#CalculationCycle").on("blur", function () {


                                        });
        $("#CalculationCycle").on("dbclick", function () {


                                        });





    })
    function setValue_CalculationCycle(val) { if (/\/Date\(\d+\)\//.test(val)) { return $("#CalculationCycle").val($.convert.jsonReductionDate(val, "yyyy-MM-dd hh:mm:ss")); } else { return $("#CalculationCycle").val(val); } };
    function getValue_CalculationCycle() { return $("#CalculationCycle").val(); };


    function loadSelectCalculationCycle() {
         $.ajax({
             url: "/HolidaySettingsRules/HolidayRulesDetail/GetCalculationCycleStatus",
                              success: function (msg)
                                              {
                                  uiEngineHelper.bindSelect("#CalculationCycle", msg.responseInfo, "ListKey", "Description");
                                  $("#CalculationCycle").removeAttr("data-status");
                                          },
                                  error:jqxError,
                                  data:{},
                                  dataType:"json"
                            })
    }
    loadSelectCalculationCycle();
                                </script>
                                <!------------------Name END------------------>
                            </td>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60">可延长比例</td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;" height="60">
                                <!------------------Name BEGIN------------------>
                                <input id="ExtensionProportion" name="ExtensionProportion" type="text" value="" style="width:200px;height:24px; " class="">
                                <script>
   $(function () {
       var form = $("#ExtensionProportion").closest("form");
var formData=[];
var thisRule1 = { input: '#ExtensionProportion', message: 'Please input digit number.', action: 'keyup, blur', rule: 'number' };
    if (form.data("validateKey") != null) {
       formData = form.data("validateKey");
    }
 formData.push(thisRule1);
 formData = form.data("validateKey", formData);
   })

   function setValue_ExtensionProportion(val) { if (/\/Date\(\d+\)\//.test(val)) { return $("#ExtensionProportion").val($.convert.jsonReductionDate(val, "yyyy-MM-dd hh:mm:ss")); } else { return $("#ExtensionProportion").val(val); } };
   function getValue_ExtensionProportion() { return $("#ExtensionProportion").val(); };

                                </script>
                                <!------------------Name END------------------>
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60">计算时间</td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;" height="60">
                                <!------------------Name BEGIN------------------>
                                @*<input id="CalculationTime" name="CalculationTime" type="text" value="" style="width:200px;height:24px; " class="">*@
                                <select data-status="loading" id="CalculationTime" name="CalculationTime" style="">
                                </select>

                                <script>
    $(function () {

        $("#CalculationTime").on("click", function () {


                                        });
        $("#CalculationTime").on("change", function () {


                                        });
        $("#CalculationTime").on("blur", function () {


                                        });
        $("#CalculationTime").on("dbclick", function () {


                                        });





    })
    function setValue_CalculationTime(val) { if (/\/Date\(\d+\)\//.test(val)) { return $("#CalculationTime").val($.convert.jsonReductionDate(val, "yyyy-MM-dd hh:mm:ss")); } else { return $("#CalculationTime").val(val); } };
    function getValue_CalculationTime() { return $("#CalculationTime").val(); };


    function loadSelectCalculationTime() {
         $.ajax({
             url: "/HolidaySettingsRules/HolidayRulesDetail/GetCalculationTimeStatus",
                              success: function (msg)
                                              {
                                  uiEngineHelper.bindSelect("#CalculationTime", msg.responseInfo, "ListKey", "Description");
                                  $("#CalculationTime").removeAttr("data-status");
                                          },
                                  error:jqxError,
                                  data:{},
                                  dataType:"json"
                            })
    }
         loadSelectCalculationTime();
                                </script>
                                <!------------------Name END------------------>
                            </td>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60">使用开始时间</td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;" height="60">
                                <!------------------Name BEGIN------------------>
                                @*<input id="StartTime" name="StartTime" type="text" value="" style="width:200px;height:24px; " class="">*@
                                <select data-status="loading" id="StartTime" name="StartTime" style="">
                                </select>

                                <script>
    $(function () {

        $("#StartTime").on("click", function () {


        });
        $("#StartTime").on("change", function () {


        });
        $("#StartTime").on("blur", function () {


         });
        $("#StartTime").on("dbclick", function () {


         });
    })
    function setValue_SubsidyType(val) { if (/\/Date\(\d+\)\//.test(val)) { return $("#StartTime").val($.convert.jsonReductionDate(val, "yyyy-MM-dd hh:mm:ss")); } else { return $("#StartTime").val(val); } };
    function getValue_SubsidyType() { return $("#StartTime").val(); };


    function loadSelectStartTime() {
         $.ajax({
             url: "/HolidaySettingsRules/HolidayRulesDetail/GetStartTimeStatus",
                              success: function (msg)
                                              {
                                  uiEngineHelper.bindSelect("#StartTime", msg.responseInfo, "ListKey", "Description");
                                             $("#StartTime").removeAttr("data-status");
                                          },
                                  error:jqxError,
                                  data:{},
                                  dataType:"json"
                            })
    }
    loadSelectStartTime();
                                </script>
                                <!------------------Name END------------------>
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60">首年计算时间</td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;" height="60">
                                <!------------------Name BEGIN------------------>
                                @*<input id="FirstCalculationTime" name="FirstCalculationTime" type="text" value="" style="width:200px;height:24px; " class="">*@
                                <select data-status="loading" id="FirstCalculationTime" name="FirstCalculationTime" style="">
                                </select>

                                <script>
    $(function () {

        $("#FirstCalculationTime").on("click", function () {


                                        });
        $("#FirstCalculationTime").on("change", function () {


                                        });
        $("#FirstCalculationTime").on("blur", function () {


                                        });
        $("#FirstCalculationTime").on("dbclick", function () {


                                        });





    })
    function setValue_FirstCalculationTime(val) { if (/\/Date\(\d+\)\//.test(val)) { return $("#FirstCalculationTime").val($.convert.jsonReductionDate(val, "yyyy-MM-dd hh:mm:ss")); } else { return $("#FirstCalculationTime").val(val); } };
    function getValue_FirstCalculationTime() { return $("#FirstCalculationTime").val(); };


    function loadSelectFirstCalculationTime() {
         $.ajax({
             url: "/HolidaySettingsRules/HolidayRulesDetail/GetFirstCalculationTimeStatus",
                              success: function (msg)
                                              {
                                  uiEngineHelper.bindSelect("#FirstCalculationTime", msg.responseInfo, "ListKey", "Description");
                                  $("#FirstCalculationTime").removeAttr("data-status");
                                          },
                                  error:jqxError,
                                  data:{},
                                  dataType:"json"
                            })
    }
    loadSelectFirstCalculationTime();
                                </script>
                                <!------------------Name END------------------>
                            </td>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60">Get in Advance?</td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;" height="60">
                                <!------------------Name BEGIN------------------>
                                <input id="AdvanceUseY" name="AdvanceUse" type="radio" checked value="" style="width:15px;height:15px; " class="">Yes
                                <input id="AdvanceUseN" name="AdvanceUse" type="radio" value="" style="width:15px;height:15px; " class="">No
                                <!------------------Name END------------------>
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60">首年工龄是否折算</td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;" height="60">
                                <!------------------Name BEGIN------------------>
                                <input id="FirstYearConversionY" name="FirstYearConversion" type="radio" checked value="" style="width:15px;height:15px; " class="">Yes
                                <input id="FirstYearConversionN" name="FirstYearConversion" type="radio" value="" style="width:15px;height:15px; " class="">No
                                <!------------------Name END------------------>
                            </td>
                            <td valign="middle" align="right" colspan="1" rowspan="1" style="word-break: break-all;" height="60"></td>
                            <td valign="middle" align="center" colspan="3" rowspan="1" style="word-break: break-all;" height="60">
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
    </div><br>
    <div id="panel-main">
        <div data-rule="" data-index="0" class="layout_area windowbox layout_area_panel panel-box">
            <div id="div_title" class="layout_area_title_sub">
                <span style="float:left;">人员范围</span> <span style="float:left; margin-left:10px;">|</span>
                <span class="icon-plus employeeFieldPlus" data-index="0" style="float:left;cursor:pointer; margin-left:30px;line-height: 61px;"></span>
                <span class="icon-remove icon-2x employeeFieldRemove" data-index="0" style="float:right; margin-right:20px;"></span>
            </div>
            <div id="div_body" class="layout_area_body_sub employeeField" data-index="0">
                <div class="row row-input" data-index="0_0" style="">
                    <select data-status="loading" id="EmployeeField_0_0" name="EmployeeField" class="EmployeeField" style="width:10% !important;margin-right:0px;">
                    </select>
                    <select data-status="loading" id="SymbolFrom_0_0" name="SymbolFrom" class="SymbolFrom" style="width:10% !important;margin-right:0px;">
                    </select>
                    <input id="ValueFrom_0_0" name="ValueFrom" type="text" value="" style="width:10% !important;height:24px;margin-right:0px; " class="">
                    <select data-status="loading" id="SymbolTo_0_0" name="SymbolTo" class="SymbolTo" style="width:10% !important;margin-right:0px;">
                    </select>
                    <input id="VGUID_0_0" name="VGUID" type="hidden" value="">
                    <input id="ValueTo_0_0" name="ValueTo" type="text" value="" style="width:10% !important;height:24px;margin-right:0px; " class="">
                    <a class="DeleteAppend employeeAppendRemove icon-remove  icon-2x" data-index="0" id="btnDeleteAppend_0_0"></a>
                </div>

            </div>
            <br />
            <div id="div_title" class="layout_area_title_sub">
                <span style="float:left;">工龄折算方法</span> <span style="float:left; margin-left:10px;">|</span>
                <span class="icon-plus gonglinFieldPlus" data-index="0" style="float:left; cursor:pointer; margin-left:30px;line-height: 61px;"></span>
            </div>
            <div id="div_body" class="layout_area_body_sub gonglinField" data-index="0" style="">
                @*<div class="row row-input" data-index="0" style="">
                    <select data-status="loading" id="Field_0_0" name="Field" class="Field" style="width:10% !important;">
                    </select>
                    <input id="SymbolFrom_0_0" name="SymbolFrom" type="text" value=">=" readonly style="width:10% !important;height:24px; " class="">
                    <input id="ValueFrom_0_0" name="ValueFrom" type="text" value="" style="width:10% !important;height:24px; " class="">
                    年
                    <input id="SymbolTo_0_0" name="SymbolTo" type="text" readonly value="<" style="width:10% !important;height:24px; " class="">
                    <input id="ValueTo_0_0" name="ValueTo" type="text" value="" style="width:10% !important;height:24px; " class="">
                    年
                    天数
                    <input id="Days_0_0" name="Days" type="text" value="" style="width:7.12% !important;height:24px; " class="">
                    Day
                    <a class="DeleteAppend filedAppendRemove  icon-remove  icon-2x" id="btnDeleteAppendG_0_0"></a>
                    <input id="VGUID_0_0" name="VGUID" type="hidden" value="">
                </div>*@
            </div>
            @*<div id="div_body" class="layout_area_body_sub gonglinField fanwei" data-index="0" style="display:none;">
                <div class="row row-input" data-index="0" style="">
                    <select data-status="loading" id="Field_0_0" name="Field" class="Field" style="width:10% !important;"></select>
                    <input id="SymbolFrom_0_0" name="SymbolFrom" type="text" value=">=" readonly style="width:10% !important;height:24px; " class="">
                    <input id="ValueFrom_0_0" name="ValueFrom" type="text" value="" style="width:10% !important;height:24px; " class="">
                    年
                    <input id="SymbolTo_0_0" name="SymbolTo" type="text" readonly value="<" style="width:10% !important;height:24px; " class="">
                    <input id="ValueTo_0_0" name="ValueTo" type="text" value="" style="width:10% !important;height:24px; " class="">
                    年
                    from
                    <input id="DaysFrom_0_0" name="DaysFrom" type="text" value="" style="width:7.14% !important;height:24px; " class="">
                    to
                    <input id="DaysTo_0_0" name="DaysTo" type="text" value="" style="width:7.14% !important;height:24px; " class="">
                    Day
                    每年递增
                    <input id="IncreasingDays_0_0" name="IncreasingDays" type="text" value="" style="width:7.14% !important;height:24px; " class="">
                    Day
                    <a class="DeleteAppend filedAppendRemove  icon-remove  icon-2x" id="btnDeleteAppendG_0_0"></a>
                    <input id="VGUID_0_0" name="VGUID" type="hidden" value="">
                </div>
            </div>*@
        </div>
    </div>
    <br>
    <script>
        var EmployeeFieldData;
        var SymbolFromData;
        var FieldData;
        function loadSelectList(eid,objIds,fid) {
            if (SymbolFromData != undefined && SymbolFromData != null) {

                if (eid != "") {
                    uiEngineHelper.bindSelect(eid, EmployeeFieldData, "ListKey", "Description");
                    $(eid).removeAttr("data-status");
                }
                if (objIds != null) {
                    for (var i = 0; i < objIds.length; i++) {
                        var objId = objIds[i];
                        uiEngineHelper.bindSelect(objId, SymbolFromData, "ListKey", "Description");
                        //if (objId.indexOf("gonglinField") != -1) {
                            var name = $(objId)[0].name;
                            if (name == "SymbolFrom") {
                                $(objId).find("option[value='5']").attr("selected", true);
                            } else {
                                $(objId).find("option[text='1']").attr("selected", true);
                            }
                        //}
                        $(objId).removeAttr("data-status");
                    }
                }

                if (fid != "") {
                    uiEngineHelper.bindSelect(fid, FieldData, "ListKey", "Description");
                    var defVal = $("#CalculationStandard").val();
                    $(fid).find("option[value='" + defVal + "']").attr("selected", true);
                    $(fid).removeAttr("data-status");
                }

            } else {
                $.ajax({
                    url: "/HolidaySettingsRules/HolidayRulesDetail/GetDropdownList",
                    success: function (msg) {
                        EmployeeFieldData = msg.responseInfo.EmployeeFieldList;
                        SymbolFromData = msg.responseInfo.SymbolList;
                        FieldData = msg.responseInfo.CalculationStandardList;
                        if (eid!="") {
                            uiEngineHelper.bindSelect(eid, EmployeeFieldData, "ListKey", "Description");
                            $(eid).removeAttr("data-status");
                        }
                        if (objIds!=null) {
                            for (var i = 0; i < objIds.length; i++) {
                                var objId = objIds[i];
                                uiEngineHelper.bindSelect(objId, SymbolFromData, "ListKey", "Description");
                                //if (objId.indexOf("gonglinField") != -1) {
                                    var name = $(objId)[0].name;
                                    if (name == "SymbolFrom") {
                                        $(objId).find("option[value='5']").attr("selected", true);
                                    } else {
                                        $(objId).find("option[text='1']").attr("selected", true);
                                    }
                                //}
                                $(objId).removeAttr("data-status");
                            }
                        }
                        
                        if (fid!="") {
                            uiEngineHelper.bindSelect(fid, FieldData, "ListKey", "Description");
                            var defVal = $("#CalculationStandard").val();
                            $(fid).find("option[value='"+defVal+"']").attr("selected", true);
                            $(fid).removeAttr("data-status");
                        }
                    },
                    error: jqxError,
                    data: {},
                    dataType: "json"
                });
            }
        }
        loadSelectList("#EmployeeField_0_0", ["#SymbolFrom_0_0", "#SymbolTo_0_0"], "#Field_0_0");
    </script>


    <a class="icon-plus icon-2x" id="btnNewAppend" href="javascript:void(0);" onclick=""></a>
    <div style="height:20px;"></div>
</form>
<script src="@Url.Content("~/Areas/HolidaySettingsRules/Views/_js/holidayrulesdetail-index.js")"></script>